﻿@model IEnumerable<RealEstateWebsite.Post>
           
@{
    ViewBag.Title = "Nhà đất bán";
}

<div id="wrapper">
     <ul class="estateList">
   @{  foreach (var post in Model)
        {   
        <li class="estateListItem estateListItemFeatued">
            <div class="innerWrap">
                <div class="estateRightInfo">
                    <div class="estatePrice">
                        <div>@post.Price @post.TypPrice.Name</div>
                    </div>

                    <div class="estateDays">
                        @{         
                            var t= DateTime.Now-@post.TimeOfPost; 
                        }
                        @t.Days.ToString()  ngày trước
                    </div>

                    <div class="estateType">
                        Loại:
                        @post.Category.Name
                    </div>
                </div>

                <div class="estatePhoto">
                    <a onclick='showListing(506);' href="#" >
                        <img src="@post.ImageUrl" width=132px; height=99px alt="" />
                    </a>
                </div>

                <div class="estateListContent">
                    <div class="innerWrap2">

                        <div class="estateListTitle">
                            <a onclick='showListing(506);' href="#" >
                                <span>@post.Title,</span>
                                <em>@post.AddressDetail</em>
                            </a>
                        </div>

                        <div class="estateListInfo">
                            Diện tich: @post.Area m2<br />
                            Quận,huyện: @post.Address.Name                              
                        </div>

                        <div class='estateListDesc'>@post.Description</div>                        

                        <div class="clear"></div>
                    </div>                    

                    <div class="clear"></div>

                </div>

            <div class="clear"></div>

        </li>
        }
    }
	<!-- end #page -->
</div>

<div id="footer-wrapper">	
	<!-- end #footer -->
</div>
